<template>
  <header class="login-header">
    <div class="container">
      <h1 class="logo"><RouterLink to="/"></RouterLink></h1>
      <h3 class="sub"><slot /></h3>
      <RouterLink class="entry" to="/">
        进入网站首页
        <i class="iconfont icon-angle-right"></i>
        <i class="iconfont icon-angle-right"></i>
      </RouterLink>
    </div>
  </header>
</template>

<script>
export default {
  name: 'LoginHeader'
}
</script>

<style scoped lang='less'>
.login-header {
  background: #fff;
  border-bottom: .0125rem solid #e4e4e4;
  .container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
  }
  .logo {
    width: 2.5rem;
    a {
      display: block;
      height: 1.65rem;
      width: 100%;
      text-indent: -124.9875rem;
      background: url(../../../assets/images/logo.png) no-repeat;
    }
  }
  .sub {
    flex: 1;
    font-size: .3rem;
    font-weight: normal;
    margin-bottom: .475rem;
    margin-left: .25rem;
    color: #666;
  }
  .entry {
    width: 1.5rem;
    margin-bottom: .475rem;
    font-size: .2rem;
    i {
      font-size: .175rem;
      color: @xtxColor;
      letter-spacing: -0.0625rem;
    }
  }
}
</style>
